Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonize integer div/mod semantics #230

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

s0mark
Copy link
Contributor

@s0mark s0mark commented Oct 23, 2023

Fix the discrepancies between the semantics of integer division and modulo in C, Z3 and Theta (see issue #209):

  • ebbb6bf: Division in IntLitExpr was calculated using BigInteger.divide, which follows C semantics. Converted it to SMT semantics, and added missing tests for integer division to EvaluationTest.
  • be73b18: Added conversion from C semantics to SMT semantics to the C-frontend.

@s0mark s0mark added the bug label Oct 23, 2023
@s0mark s0mark requested a review from leventeBajczi October 23, 2023 14:06
@leventeBajczi
Copy link
Contributor

Thanks! I think you can go ahead with the merge as soon as the junit tests succeed. We'll fix formatting in the other PR.

@s0mark s0mark merged commit 455a89c into ftsrg:xcfa-refactor Oct 23, 2023
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants